package main

import (
	"topic-chat/pkg"
)

func main() {
	rabbitmq := pkg.NewRabbitMQSimple("" +
		"rabbit")

	//rabbitmq.PublishSimple("Hello rabbit!")
	rabbitmq.PublishSimple("模块 xx 已接收公告：xx")
	//rabbitmq.PublishSimple("封禁用户名单>>>")
	//rabbitmq.PublishSimple("订单已处理：用户ID xxx")

	/*for i := 0; i <= 100; i++ {
		rabbitmq.PublishSimple("Hello rabbit!" + strconv.Itoa(i))
		time.Sleep(1 * time.Second)
		fmt.Println(i)
	}*/
}
